<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core">

<head>
	<title>Login</title>
	<link rel="stylesheet" href="../style/stylesheet.css" type="text/css" />
</head>

<body>
	<f:view>
		<h:form>
			<h1>Bitte registrieren Sie sich</h1>
			<h:panelGrid columns="3">
				<h:outputText value="Vorname:" />
				<h:inputText value="#{registerView.user.firstname}" 
				             required="true" 
				             requiredMessage="Bitte geben Sie Ihren Vornamen ein!"
				             id="txtFirstname" />
				<h:message for="txtFirstname" errorClass="error" />
				
				<h:outputText value="Nachname:" />
				<h:inputText value="#{registerView.user.lastname}" 
				             required="true" 
				             requiredMessage="Bitte geben Sie Ihren Nachnamen ein!" 
				             id="txtLastname" />
				<h:message for="txtLastname" errorClass="error" />
				
				<h:outputText value="Loginname:" />
				<h:inputText value="#{registerView.user.userID}" 
				             required="true" 
				             requiredMessage="Bitte geben Sie eine Loginname ein!"
				             
				             id="txtuserid" />
				<h:message for="txtuserid" errorClass="error" />
				
				<h:outputText value="Password:" />
				<h:inputText value="#{registerView.user.password}" 
				             required="true" 
				             requiredMessage="Bitte geben Sie ein Password ein!"
				             
				             id="txtpassword" />
				<h:message for="txtpassword" errorClass="error" />
				             
				<h:commandButton value="Ok" action="#{registerView.gotoOverview}" />
			</h:panelGrid>
		</h:form>
	</f:view>
</body>
</html>
